home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11454 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.7 KB

  1. Path: news.interpath.net!mercury!softbase
  2. From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c++,comp.lang.eiffel,comp.lang.c,comp.object,comp.software-eng
  4. Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
  5. Date: 14 Mar 1996 17:34:46 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4i9lbm$pmh@news.interpath.net>
  8. NNTP-Posting-Host: mercury.interpath.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Jay Martin (jmartin@cs.ucla.edu) wrote:
  12.  
  13. : If C is so wonderful for making high level code, then what the bleep
  14. : was C++ invented for?
  15.  
  16.     1. Really high level code,
  17.     2. Obfuscated high level code the way C obfuscates low
  18.        level code
  19.     3. To see how many paradigms one languge could support
  20.        (Simula-based OOP, MVC based OOP, data abstraction
  21.        a-la Modula-2, old C, assembly language...)
  22.  
  23. :  Most code written in C is low level crap.
  24.  
  25. But is this arguing in FAVOR of C or AGAINST it? I'd take this
  26. to be in favor of it. Right now, for example, I'm writing some
  27. really low level code that uses words as bitmaps. In C it is
  28. very elegant. You load up a bitmap with clues you find reading
  29. a file, then just do a test on the word to see if a
  30. ceertain condition holds.
  31.  
  32. : Culture is everywhere.  I have seen many FORTRAN programmers have
  33. : brain seizures when they first saw identifiers longer than 6
  34. : characters and of lower/mixed case.
  35.  
  36. My favorite story is the old saying -- why do I need more positions? I
  37. can't think up 6 bytes as it is! :)
  38.  
  39. What people don't realize about C is that it's a self-preservation
  40. phenomenon. Moving from computer to computer, you can bring your C
  41. skills and have a lot less to learn when you sit down in front of a new
  42. box, a new OS, etc. So, programmers have a vested interest in making
  43. some language -- and it happened to be C -- universal. Writing COBOL on
  44. a mainframe, Delphi in Windows, REXX in OS/2, and perl in UNIX isn't as
  45. good as writing C everywhere. C isn't perfect --  but it can be
  46. implemented easily on new platforms. C compilers are cheap and
  47. plentiful, and a C programmer can sit down at just about anything from
  48. an MVS mainframe to a TI pocket calculator and get to work.
  49.  
  50. Also, C is a compromise between: verbosity in languages like Modula-2
  51. and COBOL and the terseness that seems to be preferred by professionals
  52. (even longtime COBOL programmers omit everything but the bare minimum
  53. verbosity required!); high-level and low-level access -- C supports
  54. just about everything Modula-2 does (although not as cleanly), and also
  55. supports just about everything asm does.  And so on. It's a compromise
  56. that has worked better than anything else.
  57.  
  58. If the price for this is a few pathological buit twiddlers, fine!
  59.  
  60. Scott
  61.  
  62.